/**
 * 功能:TK_REF_GOODS Service类
 * 开发人员:chengd
 * 创建时间:2012/4/23 22:30:16
 */
package com.towker.frame.service.sell;

import java.util.List;

import org.springframework.stereotype.Service;
import com.towker.core.db.EntityDao;
import com.towker.core.db.BaseService;
import com.towker.frame.model.sell.RefGoods;
import com.towker.frame.dao.sell.RefGoodsDao;

@Service
public class RefGoodsService extends BaseService<RefGoods, java.lang.Long>
{
	private RefGoodsDao dao;
	
	public void setRefGoodsDao(RefGoodsDao dao)
	{
		this.dao = dao;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao()
	{
		return this.dao;
	}
	public List<RefGoods> getByInfoType(Integer infoType, Integer infoId) {
		return this.dao.getByInfoType(infoType, infoId);
	}
	public void deleteByInfoType(Integer infoType, Integer infoId) {
		this.dao.deleteByInfoType(infoType, infoId);
	}
}
